package com.onesports.intelligent.k12.polarlight.enums;

import com.baomidou.mybatisplus.annotation.IEnum;
import com.fasterxml.jackson.annotation.JsonValue;
import com.onesports.intelligent.k12.polarlight.annotation.SysDict;

/**
 * 财务流水类型
 * @author Wu
 */
@SysDict(value = "财务流水类型",code = "TradeType")
public enum TradeTypeEnum implements IEnum<String> {
    /**
     * 1:充值，2：提现，3：课款缴费，4：团长分佣，5：教练分佣
     */
    RECHARGE("1","充值"),
    CASH_OUT("2","提现"),
    COURSE_PAY("3","课款缴费"),
    HEAD_SUB("4","团长分佣"),
    COACH_SUB("5","教练分佣");

    private final String value;
    private final String label;

    TradeTypeEnum(String value, String label) {
        this.value = value;
        this.label = label;
    }

    @Override
    public String getValue() {
        return this.value;
    }

    @JsonValue
    public String getLabel() {
        return this.label;
    }
}
